package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Role;

import java.util.List;

//角色信息接口
public interface RoleService {

    //查询所有的角色信息
    List<Role> findAll();

    //分页查询
    PageResult findPage(QueryPageBean queryPageBean);

    Role findById(Integer id);

    List<Integer> findPermissionIds(Integer id);

    List<Integer> findMenuIds(Integer id);

    void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    void edit(Integer[] permissionIds, Integer[] menuIds, Role role);

    void delById(Integer id);
}
